const marked = require('marked')
// 创建一个md解析对象,提供给全局本组件全局使用也可以放置到main.js里面
var rendererMD = new marked.Renderer()
marked.setOptions ({
    renderer: rendererMD ,
    gfm: true ,
    tables: true ,
    breaks: false ,
    pedantic: false ,
    sanitize: true,
    smartLists: true ,
    smartypants: true,
    XHTML: false
})

module.exports = marked
